package com.jsxa.iotPer.common.utils;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/*
 * @Author zhangyong
 * @Description //base64转 Multipart
 * @Date 下午 3:15 2019/10/14 0014
 * @Param
 * @return
 **/
public class Base64ToMultipartUtils {


/*    public static MultipartFile base64ToMultipart(String base64) {
        //String base64Str = "...."; base64的格式
        String[] baseStrs = base64.split(",");
        BASE64Decoder decoder = new BASE64Decoder();
        byte[] b = new byte[0];
        try {
             //b = decoder.decodeBuffer(baseStrs[1]);
             b = decoder.decodeBuffer(base64);
                } catch (IOException e) {
                     e.printStackTrace();
            }
        for (int i = 0; i < b.length; ++i) {
        if (b[i] < 0) {
            b[i] += 256;
        }
        }
         return new BASE64DecodedMultipartFile(b, baseStrs[0]);
    }*/


/*    public static void main(String[] args) {

        //(1)将头像的base64编码字符串转换为file文件并上传图片到服务器
        String headPortraitBase64 = "/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAH4AZgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictE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FeeGH8i+TSLC0tbxbiWKW0fXtSuNMkuogqspmtYkLxBwUdnIcYANfxbXccmuPqOtX88kt9qt3Ld30rYZ57mcu8s0jcZZ3LM2AoLHPGBXjfRx8KKPEc8PxRjMXUf1Wg8TTorkcfa04+1g7OzWqST1t5K5zeIvEeYUcLicHCdqL1a5nfW8f6/q/LT+M9Y8z9yigZOT5jlfUbeOvb68D0rTsPE+vTLmXmLgNiRiVyTkAFR6n0xjrgV0Fj4V0+WPT2cZM0Ts+UHXcw/vc9O9ayeG7eC6WCKeRYDuzEEXYcbh0z6ZFf39l8FKMZNvmbWv3n8y1MZUq/Fd/P8A4Hr330sXNPlmvoizO0aFGKyKQSH2MUABPqOo9q5XXtVurWB7Kad5d5VcuwyT8ygYHue1euDRrXT9D8yDhvtFun3ccOXU9D1rzLXNMt7zV4o5Rld2/p3VwR0I/rXp1+ny/Ugb4cstOj09G1AlJJArKCitkDIP3nXoeOBXQfZ/D/8Az0/8hx//AByuc1qJYJ44E+5ErIvbjdnp+NY1c4H/2Q==";
        MultipartFile multipartFile = Base64ToMultipartUtils.base64ToMultipart(headPortraitBase64);
        //(2)得到文件上传路径
        String headPortraitBase64qq = "data:image/jpeg;base64";
        String headPortraitFileUploadPath = "D:/staticResource/test/";
        //(1)得到最终的文件名(身份证号+后缀名，如510121199301221219.jpg)
        String headPortraitFileName = "zzzzzzzzmmmmmmmm"+".jpg";
        try {
            FileUploadUtils.uploadFile(multipartFile,headPortraitFileUploadPath,headPortraitFileName);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }*/
}
